﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SuKienMaster.Master" AutoEventWireup="true" CodeBehind="XemDiaDiem.aspx.cs" Inherits="QuanLySuKien.XemDiaDiem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMain" runat="server">
  <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Blue" 
        Height="30px" Width="260px">Tìm Kiếm Địa Điểm Theo Khu Vực:</asp:Label>
    
    <asp:Label ID="StatusLabel" runat="server"></asp:Label>
  
    
    <asp:GridView ID="GridView1" runat="server" Width="783px" BackColor="White" 
        BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        EnableModelValidation="True" GridLines="Vertical" Height="118px" 
        AutoGenerateColumns="False" AllowPaging="True" 
        onpageindexchanging="GridView1_PageIndexChanging">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:BoundField DataField="TenDiaDiem" HeaderText="Tên Địa Điểm">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField>
            <asp:BoundField DataField="MaKV" HeaderText="Mã Khu Vực">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField> 
            <asp:BoundField DataField="DiaChi" HeaderText="Địa chỉ">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField>
            <asp:BoundField DataField="LienHe" HeaderText="Liên Hệ">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField> 
            <asp:BoundField DataField="SucChua" HeaderText="Sức Chứa">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField>
            <asp:BoundField DataField="Gia" HeaderText="Giá">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField> 
            <asp:BoundField DataField="Mota" HeaderText="Mô Tả">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField>
            <asp:BoundField DataField="TrangThai" HeaderText="Trạng Thái">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField>
        </Columns>
    </asp:GridView>
    <table>
    <tr>
        <td class="style2">
            Chọn Khu Vực*
        </td>
        <td>
            <asp:DropDownList ID="DropDownList1" runat="server" 
                DataSourceID="SqlDataSource1" DataTextField="TenKhuVuc" DataValueField="MaKV">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="Data Source=192.168.1.100;Initial Catalog=quanlysukien;User ID=sa;Password=123456" 
                ProviderName="System.Data.SqlClient" 
                SelectCommand="SELECT * FROM [KhuVuc]"></asp:SqlDataSource>
        </td>
        <td>
            <asp:Button ID="Button1" runat="server" Text="Xem" onclick="Button1_Click1" />
        </td>
    </tr>
    </table>
    <table>
        <asp:GridView ID="GridView2" runat="server" Width="783px" BackColor="White" 
        BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        EnableModelValidation="True" GridLines="Vertical" Height="118px" 
            AutoGenerateColumns="False">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:BoundField DataField="TenDiaDiem" HeaderText="Tên Địa Điểm">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField>
            <asp:BoundField DataField="MaKV" HeaderText="Mã Khu Vực">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField> 
            <asp:BoundField DataField="DiaChi" HeaderText="Địa chỉ">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField>
            <asp:BoundField DataField="LienHe" HeaderText="Liên Hệ">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField> 
            <asp:BoundField DataField="SucChua" HeaderText="Sức Chứa">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField>
            <asp:BoundField DataField="Gia" HeaderText="Giá">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField> 
            <asp:BoundField DataField="Mota" HeaderText="Mô Tả">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField>
            <asp:BoundField DataField="TrangThai" HeaderText="Trạng Thái">
            <HeaderStyle HorizontalAlign="Left" />
        </asp:BoundField>
        </Columns>
    </asp:GridView>
    </table>
    
</asp:Content>
